﻿using System;

namespace Pap.Core.CronJobs
{
    /// <summary>
    /// 
    /// </summary>
    public interface ICronJob
    {
        /// <summary>
        /// Gets the sliding time.
        /// </summary>
        TimeSpan SlidingTime { get; }
        /// <summary>
        /// Gets the name of the job.
        /// </summary>
        /// <value>
        /// The name of the job.
        /// </value>
        string JobName { get; }
        /// <summary>
        /// Executes this instance.
        /// </summary>
        void Execute();
    }
}
